Skip to content

Conversation

@Will-ShaoHua
Copy link
Contributor

@Will-ShaoHua Will-ShaoHua commented Sep 25, 2024

Problem

Per product team's request, unblock requests of the following language to the service which will be ready soon. (thus not calling it out as a "feat" as it's not supported yet)

image

Solution

Functional test

vscode-swift.mov
vscode-lua.mov
vscode-dart.mov
vscode-r.mov
vscode-systemverilog.mov
vscode-powershell.mov

License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions
Copy link

This pull request modifies code in src/ but no tests were added/updated. Confirm whether tests should be added or ensure the PR description explains why tests are not required.

@Will-ShaoHua Will-ShaoHua marked this pull request as ready for review October 1, 2024 19:35
@Will-ShaoHua Will-ShaoHua requested a review from a team as a code owner October 1, 2024 19:35
@Will-ShaoHua Will-ShaoHua marked this pull request as draft October 1, 2024 21:09
@Will-ShaoHua Will-ShaoHua changed the title Inline language expansion feat(amazonq) Inline completion language expansion Oct 7, 2024
@github-actions
Copy link

github-actions bot commented Oct 7, 2024

This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions.

@Will-ShaoHua Will-ShaoHua marked this pull request as ready for review October 7, 2024 19:21
@Will-ShaoHua Will-ShaoHua changed the title feat(amazonq) Inline completion language expansion config(amazonq) Inline completion language expansion Oct 7, 2024
@Will-ShaoHua
Copy link
Contributor Author

will attach functional test screen recording

@Will-ShaoHua Will-ShaoHua requested a review from a team as a code owner October 8, 2024 00:53
@Will-ShaoHua Will-ShaoHua changed the title config(amazonq) Inline completion language expansion config(amazonq) unblock several languages generateCompletion requests to the service Oct 8, 2024
@Will-ShaoHua Will-ShaoHua changed the title config(amazonq) unblock several languages generateCompletion requests to the service config(amazonq): unblock several languages generateCompletion requests to the service Oct 9, 2024
@Will-ShaoHua
Copy link
Contributor Author

2636 passing (5m)
13 pending
1 failing

  1. Auth
    promptForConnection
    reauthenticates a connection if the user selects an expired one:

    AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

assert_1.default.ok(!refreshedConnItem.description?.match(/expired/i))

  + expected - actual

  -false
  +true

@justinmk3 justinmk3 changed the title config(amazonq): unblock several languages generateCompletion requests to the service config(amazonq): enable more languages in generateCompletion requests Oct 9, 2024
@justinmk3 justinmk3 merged commit 4cecf55 into aws:master Oct 9, 2024
64 of 76 checks passed
Will-ShaoHua added a commit to Will-ShaoHua/aws-toolkit-vscode that referenced this pull request Oct 24, 2024
@Will-ShaoHua Will-ShaoHua deleted the inline-language-expansion branch October 24, 2024 17:19
jpinkney-aws pushed a commit that referenced this pull request Oct 25, 2024
… (#5854)

## Problem

patch #5663 

Due to this line of code
https://github.com/aws/aws-toolkit-vscode/blob/master/packages/core/src/codewhisperer/util/runtimeLanguageContext.ts#L156-L173

when users make inline completion call with new languages, logs will
show
`2024-10-24 08:52:55.501 [error] codewhisperer: unknown runtime language
dart`, however it doesn't have functional impact because it will
fallback to original language string (which is the reason why it doesn't
fail test cases) and it's only affecting logs.

test has been added
https://github.com/aws/aws-toolkit-vscode/blob/master/packages/amazonq/test/unit/codewhisperer/util/runtimeLanguageContext.test.ts#L184-L222




## Solution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants